package cn.sccl.common.exception;

/**
 * 非空异常
 * Created by 杨浩宇 on 2016/2/24 0024.
 */
public class NotNullException extends BusinessException {
    private String message = "不能为空！";

    public NotNullException() {
        super();
    }

    public NotNullException(String key) {
        super();
        this.message = key + this.message;
    }

    public NotNullException(Throwable cause) {
        super(cause);
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public String getErrorCode() {
        return "10001";
    }
}
